#include <stdio.h>
void main()
{
	int i = 1,a=0,sum=0;
	for (i = 1; i < 9; i++)
	{
		a = a * 10 + i;
		sum = sum + a;
	}
	printf("sum=%d",sum);

}